package org.nstack.header.storage.snapshot;

import org.nstack.header.identity.Action;
import org.nstack.header.message.APIDeleteMessage;
import org.nstack.header.message.APIParam;
import org.nstack.header.rest.APINoSee;
import org.nstack.header.storage.backup.BackupStorageVO;

import java.util.List;


@Action(category = VolumeSnapshotConstant.ACTION_CATEGORY)
public class APIDeleteVolumeSnapshotFromBackupStorageMsg extends APIDeleteMessage implements VolumeSnapshotMessage {

    @APIParam(resourceType = VolumeSnapshotVO.class, checkAccount = true, operationTarget = true)
    private String uuid;

    @APIParam(resourceType = BackupStorageVO.class)
    private List<String> backupStorageUuids;


    @APINoSee
    private String volumeUuid;

    @APINoSee
    private String treeUuid;

    @Override
    public String getTreeUuid() {
        return treeUuid;
    }

    @Override
    public void setTreeUuid(String treeUuid) {
        this.treeUuid = treeUuid;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public List<String> getBackupStorageUuids() {
        return backupStorageUuids;
    }

    public void setBackupStorageUuids(List<String> backupStorageUuids) {
        this.backupStorageUuids = backupStorageUuids;
    }

    @Override
    public String getSnapshotUuid() {
        return uuid;
    }

    @Override
    public String getVolumeUuid() {
        return volumeUuid;
    }

    public void setVolumeUuid(String volumeUuid) {
        this.volumeUuid = volumeUuid;
    }

    public static APIDeleteVolumeSnapshotFromBackupStorageMsg __example__() {
        APIDeleteVolumeSnapshotFromBackupStorageMsg msg = new APIDeleteVolumeSnapshotFromBackupStorageMsg();
        return msg;
    }
    
}